<!--#include("setting_config.html")-->

<!--@if($colorset=='darken')-->
	<!--%import("css/darken.css")-->
<!--@else-->
	<!--%import("css/light.css")-->
<!--@end-->

<!-- // config 상에서 설정한 설정값을 위해 css 나 js 외에 이 곳에서 값을 대입해주는게 필요함 -->
<style type="text/css">
	.width { width: {$full_width}px; margin:0 auto; }
	.postRow { width:{$column_width}px; padding-right:{$column_margin}px; }
</style>

<script type="text/javascript">
	var full_width = "{$full_width}";
</script>

<!--%import("js/fotowall.js")-->

<div id="xe" class="<?php echo $style;?>">
	<div id="hidden_area">
		<div id="top">
			<div class="width">
				<ul id="top_navigation">
					<li class="home selected"><a href="{$home_url}"><img src="img/icon_home.png" alt="Home" /></a></li>
				</ul>

				<div id="search_wrap">
					<form action="{$root_url}" method="get" class="search">
						<input name="vid" type="hidden" value="{$vid}" />
						<input name="mid" type="hidden" value="{$mid}" />
						<input name="act" type="hidden" value="dispTextyle" />
						<input name="search_target" type="hidden" value="title_content" />
						<fieldset>
							<legend>검색</legend>
							<div class="keyword">
								<input name="search_keyword" type="text" class="inputText" value="{$search_keyword}" accesskey="S" title="SEARCH" />
							</div>
							<div class="submit">
								<input type="submit" class="buttonSearch" value="검색" />
							</div>
							<div class="clear"></div>
						</fieldset>
					</form>
				</div>
			</div>
		</div> <!-- top -->
		
		<!-- // 상단의 자동 숨김 시스템을 위한 테스트 삽입
		<div id="down_button_area" class="width">		
			<div class="button">
				<img src="img/icon_search.png" alt="검색" /><br />
			</div>
		</div>
		--> <!-- down_button_area -->
	</div> <!-- hidden_area -->

	<div id="container">
		<div id="header" class="width">
			<!-- // 한줄소개(textyle_content) 는 현재 시스템에서 치환되지 않는 듯 함 -->
			<h1><a href="{$home_url}">{$textyle_title}</a><!--@if(!empty($textyle_content))--><span class="sep">/</span> <span class="summary">{$textyle_content}</span><!--@end--></h1>
			
			<div class="category">	
				<!-- // fotowall 스타일의 분류 항목 -->
				<!--#include("setting_get_category.html")-->
			</div>

			<div class="clear"></div>
		</div>

        <div id="body" class="width">
            <div id="content">
                <!--@if($textyle_mode == 'module')-->
                    {$content}
                <!--// Profile -->
                <!--@elseif($textyle_mode == 'profile')-->
				<div class="profileWrap">
                    <h2 class="postTitle">프로필</h2>
                    <div class="textyleContent xe_content">{$profile_content}</div>
				</div>
                <!--// GuestBook -->
                <!--@else if($textyle_mode == 'guestbook')-->
					<!--#include('guestbook.html')-->

                <!--// Comment Reply, Modify -->
                <!--@else if($textyle_mode=='comment_form')-->
					<!--#include('comment_form.html')-->

                <!--// display Post list --> 
                <!--@elseif($textyle_mode=='list')-->
					<!--#include('post.title_list.html')-->

                <!--// display Post Summary -->
                <!--@elseif($textyle_mode=='summary')-->
					<!--@if($gallery_use)-->
						<!--#include('setting_get_gallery.html')-->
						
						<!--@if(count($thumbnailList)>0)-->

						<!--%import("js/gallery.js")-->

						<script type="text/javascript">
							jQuery(function(){
								jQuery('#slides').slides({
									preload: true,
									generateNextPrev: true,
									effect: '{$gallery_effect}'
								});
							});
						</script>

						<style type="text/css">		
							#slides { height:{$gallery_height}px; }
							.slides_container { height:{$gallery_height}px; }
						</style>

						<div id="slides">
							<div class="slides_container">
							<!--@foreach($thumbnailList as $thumbnail)-->
								<div class="slide">
									<a href="{getUrl('document_srl',$thumbnail['document_srl'],'cpage','')}"><img src="{$thumbnail['url']}" alt="" /></a>
									<h2><a href="{getUrl('document_srl',$thumbnail['document_srl'],'cpage','')}">{$thumbnail['document_title']}</a></h2>
									<div class="info_bg">&nbsp;</div>		
								</div>
							<!--@end-->
							</div>
						</div>
						<!--@end-->
					<!--@end-->

					<!--@if($style == 'mossaic')-->
						<!--#include('post.summary.mossaic.html')-->
					<!--@else-->
						<!--#include('post.summary.column.html')-->
					<!--@end-->

                <!--// display post body or body list -->
                <!--@else-->
					<!--#include('post.list.html')-->
                <!--@end-->

				<!--// display pagenavigation -->
                <!--@if($page_navigation && $textyle_mode != 'module')-->
                <div id="paging">
                    <!--@while($page_no = $page_navigation->getNextPage())-->
						<!--@if($page == $page_no)-->
						<a href="{getUrl('page',$page_no,'document_srl','','entry','')}" class="selected">{$page_no}</a>
						<!--@else-->
						<a href="{getUrl('page',$page_no,'document_srl','','entry','')}">{$page_no}</a>
						<!--@end-->
                    <!--@end-->
                </div> <!-- paging -->
                <!--@end-->
            </div> <!-- content -->
        </div> <!-- body -->
	</div>

	<div id="footer">      
		<div class="width">		
			<div class="powered">
				<div id="admin_menu"><a href="{$admin_url}" class="admin" accesskey="A" title="관리자"><img src="img/icon_admin.png" alt="admin" /></a></div>

				<ul>
					<li id="profile_menu"<!--@if($act=='dispTextyleProfile')--> class="selected"<!--@end-->><a href="{$profile_url}">프로필</a></li>
					<li id="guestbook_menu"<!--@if($act=='dispTextyleGuestbook')--> class="selected"<!--@end-->><a href="{$guestbook_url}">방명록</a></li>
                    <!--@foreach($extra_menus as $key => $val)-->
					<li<!--@if($key==$mid || $val==getUrl('','mid',$mid))--> class="selected"<!--@end-->><a href="{$val}">{$key}</a></li>
                    <!--@end-->	
					<li id="rss_menu"><a href="{$home_url}rss"><img src="img/icon_rss.png" alt="RSS" /></a></li>
				</ul>
				<div class="clear"></div>

				<a href="http://fotowall.net?r=fotowallXE" target="_blank"><img src="img/icon_fotowall.png" alt="it's fotowall" /></a>
			</div>
		</div>
	</div>
</div>
